package coint.btc.constant;

public enum ShenfenEnum {
     CENDUISHANG(1,"cd"),SHANGJIA(2,"sj");
	
	 private Integer value;
	 
	 private String name;

	public Integer getValue() {
		return value;
	}

	public void setValue(Integer value) {
		this.value = value;
	}
	
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	private ShenfenEnum(Integer value,String name) {
		this.value = value;
		this.name=name;
	}
	
	 public static ShenfenEnum getByValue(int value) {  
	        for (ShenfenEnum shenfen : values()) {  
	            if (shenfen.getValue() == value) {  
	                return shenfen;  
	            }  
	        }  
	        return null;  
	    }  
	 
	 
}
